<extend name="Public:base" />
<block name="content">
<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<tbody>
						<volist name="detail" id="vo">
						<tr>
                            <td>电子券名称：{$vo.volume_name}</td></tr>
                            <tr><td>面值：{$vo.total}元</td></tr>
                            <tr><td>类型：<?php
								switch($vo['type']){
									case '1':
									echo '<span class="blue bold">代金券</span>';
                                break;
                                case '2':
                                echo '<span class="red bold">现金券</span>';
                                break;
                                }
                                ?></td>
                            </tr>
                            <tr><td>可用范围：{$vo.category}</td></tr>
                            <tr><td>可用条件：订单满{$vo.min}可用，不填则任意情况可用</td></tr>
                            <tr> <td>有效期： 开始时间：{$vo.start_time} 结束时间：{$vo.end_time}</td></tr>
                            <tr><td>状态：
                                <?php
								switch($vo['status']){
									case '1':
									echo '<span class="green bold">已生效</span>';
                                break;
                                case '0':
                                echo '<span class="red bold">已失效</span>';
                                break;
                                }
                                ?>
                            </td>
                            </tr>
						</volist>
				</tbody>
			</table>
		</div>
        <div>
            <a href="{:U('coupon/manage')}" class="btn btn-sm btn-info radius5" style="margin-right: 5px;float:none;">
                <i class="ace-icon fa">返回</i>
            </a>
        </div>
	</div>
</div>
</block>
